import Vue from 'vue'
import Router from 'vue-router'
import sysHome from '@/components/home/index.vue'
import changePwd from '@/components/content/user/changePwd.vue'
import addUser from '@/components/content/user/addUser.vue'
import editorUser from '@/components/content/user/editorUser.vue'
import addInfo from '@/components/content/info/addInfo.vue'
import editorInfo from '@/components/content/info/editorInfo.vue'
import unitInfo from '@/components/content/check/unitInfo.vue'
import unitCollect from '@/components/content/check/unitCollect.vue'
import unitInfoDetail from '@/components/content/check/unitInfoDetail.vue'
import carInfo from '@/components/content/check/carInfo.vue'
import carOil from '@/components/content/check/carOil.vue'
import carOilCheck from '@/components/content/check/carOilCheck.vue'
import indexEnergy from '@/components/content/check/indexEnergy.vue'
import indexEnergyCollect from '@/components/content/check/indexEnergyCollect.vue'
import indexEnergyDetail from '@/components/content/check/indexEnergyDetail.vue'
import computerList from '@/components/content/check/computerList.vue'
import computerCheck from '@/components/content/check/computerCheck.vue'
import computerCollect from '@/components/content/check/computerCollect.vue'
import yearSummary from '@/components/content/summary/yearSummary.vue'
import monthSummary from '@/components/content/summary/monthSummary.vue'
import unitSummary from '@/components/content/summary/unitSummary.vue'
import oilSummary from '@/components/content/summary/oilSummary.vue'
import reportBar from '@/components/content/report/reportBar.vue'
import reportLine from '@/components/content/report/reportLine.vue'
import carBar from '@/components/content/report/carBar.vue'
import carLine from '@/components/content/report/carLine.vue'


Vue.use(Router)
export default new Router({
  routes: [
    {
      path: '/',
      redirect: '/sysHome'
    },
    {
      path: '/sysHome',
      component: sysHome
    },
    {
      path: '/changePwd',
      component: changePwd
    },
    {
      path: '/addUser',
      component: addUser
    },
    {
      path: '/editorUser',
      component: editorUser
    },
    {
      path: '/editorInfo/:newsType',
      component: editorInfo
    },
    {
      path: '/addInfo/:newsType/:newsId',
      component: addInfo
    },
    {
      path: '/unitInfo',
      component: unitInfo
    },
    {
      path: '/unitInfoDetail/:year/:departName',
      component: unitInfoDetail
    },
    {
      path: '/unitCollect',
      component: unitCollect
    },
    {
      path: '/carInfo',
      component: carInfo
    },
    {
      path: '/carOil',
      component: carOil
    },
    {
      path: '/carOilCheck/:year/:month/:department',
      component: carOilCheck
    },
    {
      path: '/indexEnergy',
      component: indexEnergy
    },
    {
      path: '/indexEnergyCollect',
      component: indexEnergyCollect
    },
    {
      path: '/indexEnergyDetail/:year/:month/:department',
      component: indexEnergyDetail
    },
    {
      path: '/computerList',
      component: computerList
    },
    {
      path: '/computerCollect',
      component: computerCollect
    },
    {
      path: '/computerCheck/:year/:month/:department',
      component: computerCheck
    },
    {
      path: '/yearSummary',
      component: yearSummary
    },
    {
      path: '/monthSummary',
      component: monthSummary
    },
    {
      path: '/unitSummary',
      component: unitSummary
    },
    {
      path: '/oilSummary',
      component: oilSummary
    },
    {
      path: '/reportBar/:typeTotal/:typeAmount',
      component: reportBar
    },
    {
      path: '/reportLine/:typeTotal/:typeAmount',
      component: reportLine
    },
    {
      path: '/carBar',
      component: carBar
    },
    {
      path: '/carLine',
      component: carLine
    }
  ]
})
